package cn.bs.busuo.account.dao.persist.repository.impl;

import cn.bs.busuo.account.dao.persist.mapper.OrderMapper;
import cn.bs.busuo.account.dao.persist.repository.IOrderRepository;
import cn.bs.busuo.account.pojo.entity.SightOrder;
import cn.bs.busuo.account.pojo.param.Order;
import cn.bs.busuo.account.pojo.vo.OrderVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class OrderRepositoryImpl implements IOrderRepository {
    @Autowired
    private OrderMapper orderMapper;

    //    创建买票订单
    @Override
    public void addOrder(SightOrder sightOrder) {
        orderMapper.insert(sightOrder);
    }

    @Override
    public OrderVO selectOrder(Order order) {
        return orderMapper.selectOrder(order);
    }
}
